Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X pattern print #283

Open
wants to merge 184 commits into
base: revert-61-PrimalityTest
Choose a base branch
from
Open

X pattern print #283

wants to merge 184 commits into from

Conversation

shakil-here
Copy link

@shakil-here shakil-here commented May 11, 2023

#include <stdio.h>

int main()
{
    int size;
    scanf("%d", &size);
 for (int i = 1; i <= size; i++)
    {
        for (int j = 1; j <= size; j++)
        {
            if(i==j || j==size-i+1)
            printf("* ");
            else
            printf("  ");
        }
        printf("\n");
    }
}

Manaarth and others added 30 commits October 7, 2019 00:21
HackerRank Diagonal Difference problem solution
This algo swaps two numbers without using any extra space or variable(By Sarvesh).
This algo finds the length of any string without using any inbuilt function or library (By Sarvesh).
Revert "Added a Cprogram to check primality"
This is he code to check whether string is anagram.
Anagram is a word, phrase, or name formed by rearranging the letters of another, such as spar, formed from rasp.
fgets() added to the program instead of gets() function. The code runs without breaking and has proper comments. Thanks!
Added endian.c which identifies machine is Little/Big Endian
This algo checks whether a given no. is perfect or not.
A perfect no. is a positive no. which is equal to the sum of its positive divisors.As: 6,28,496,8128
This algo checks whether a given no. is perfect or not.
A perfect no. is a positive no. which is equal to the sum of its positive divisors.As: 6,28,496,8128
This algo checks whether a given no. is perfect or not.
A positive no. is said to be perfect if it i equal to the sum of its positive divisors.As: 6,28,496,8128,etc
added a file for multiplication by Russian Peasant Algorithm
add calculator for last digit of nth fibonacci number
gouravthakur39 and others added 30 commits June 25, 2022 15:04
added a program to get all PIDs that is used by parent and child in a…
added a beautiful code for lexicographic sorting
updated gcd.c file with better functionality
Update Polynomial_linklist.c
add lambda examples by compiler extension
 to find average & sum of a,b,c in one function
check functon is even or odd in c programming
Create stack_using_linklist
Update Address of 1-D array
Added CalculateSimpleInterest.c
Create MostFrequentWordInString.c
Create Number_guessing_game
Finding the first missing natural number
Added C program to find the closest power of 2 for a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.